<h3>编辑配置</h3>

<% form_for(@webconfig) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name  ,"标志名"%>
    <%= f.text_field :name %>*
  </p>
  <p>
    <%= f.label :description ,"描述"%>
    <%= f.text_field :description %>*
  </p>  
  <p>
    <%= f.label :content ,"内容" %>
    
    <%= render :partial=>"articles/online_editor",:locals=>{:hidden_name=>"webconfig[content]",:content=>@webconfig.content,:identity_id=>nil} %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>


<%= link_to 'Back', webconfigs_path(:style=>@webconfig.style) %>
<fieldset class="demo">
  <LEGEND>操作说明：</LEGEND>
  <p>
    编辑网站配置,*为必填项。
  </p>
</fieldset>